home *** CD-ROM | disk | FTP | other *** search
-
-
-
- Fchown(2) Dec. 12, 1991 Fchown(2)
-
-
- N✓NA✓AM✓ME✓E
- Fchown - change a file's ownership
-
- S✓SY✓YN✓NO✓OP✓PS✓SI✓IS✓S
- LONG Fchown( char *name, WORD uid, WORD gid );
-
- D✓DE✓ES✓SC✓CR✓RI✓IP✓PT✓TI✓IO✓ON✓N
- _✓F_✓c_✓h_✓o_✓w_✓n changes a file's user and group ownership to _✓u_✓i_✓d
- and _✓g_✓i_✓d respectively. These ownerships determine access
- rights to the file.
-
- Only a process with effective uid 0 or whose effective uid
- matches the user ownership of the file may make this call.
- In the latter case, the new _✓u_✓i_✓d must match the old one,
- and the calling process must also be a member of the group
- specified by _✓g_✓i_✓d.
-
- R✓RE✓ET✓TU✓UR✓RN✓NS✓S
- 0 on success
-
- EACCDN if the calling process has an effective uid which
- differs from the owner of the file and which is not 0.
-
- EINVFN if the file system on which the file is located
- does not support a notion of ownership. (This is true of
- the normal TOS file system.)
-
- EFILNF if the file is not found
-
- EPTHNF if the path to the file is not found.
-
- S✓SE✓EE✓E A✓AL✓LS✓SO✓O
- _✓F_✓c_✓h_✓m_✓o_✓d(2), _✓F_✓x_✓a_✓t_✓t_✓r(2)
-
- B✓BU✓UG✓GS✓S
- Most file systems don't understand file ownership.
-
- In practice, the call is useful only to processes with
- effective uid 0.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Version 0.92 MiNT Programmer's Manual 1
-
-
-